<%--
  Created by IntelliJ IDEA.
  User: 10171225
  Date: 2016/2/15
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>发表文章</title>
</head>
<body>
<div class="container">
    <div>
        <jsp:include page="head.jsp"/>
    </div>
    <div>
        <form action="article/create" method="post">
            <span>文章标题：</span>
            <input type="text" name="title" size="20em"/><br/>
            <span>文章内容：</span>
            <script id="container" name="content" type="text/plain">
            </script>
            <span>标签</span>
            <select name="tag">
                <option value ="红球" selected="selected">红球</option>
                <option value ="篮球">篮球</option>
            </select>
            <br/>
            <button name="submit" type="submit">提交</button>
        </form>
    </div>
    <div>
        <br/><jsp:include page="footer.jsp"/><br/>
    </div>
</div>

<script type="text/javascript" src="plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="plugins/ueditor/ueditor.all.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('container');
</script>
</body>
</html>
